/** When your routing table is too long, you can split it into small modules**/

const Layout = () => import('@/layout/index.vue');

const cityRouter = {
  path: '/city',
  component: Layout,
  name: 'city',
  meta: {
    title: '城市管理',
    icon: 'chart'
  },
  children: [
    {
      path: 'cityIndex',
      component: () => import('@/views/city/index.vue'),
      name: 'cityIndex',
      meta: { title: '城市管理', }
    },
    {
      path: 'cityAdd',
      component: () => import('@/views/city/add.vue'),
      name: 'cityAdd',
      meta: { title: '新增', hidden: true }
    },
    {
      path: 'cityEdit',
      component: () => import('@/views/city/edit.vue'),
      name: 'cityEdit',
      meta: { title: '編輯', hidden: true }
    }
  ]
};

export default cityRouter;
